/**
 * 
 */
package pers.xwx.titan.bo;

import java.util.Date;
import java.util.List;

/**
 * @author user
 *
 */
public class DruidLogBO {
	
	/**
	 * 操作id
	 */
	private String id;
	
	/**
	 * 操作表
	 */
	private String table;
	
	/**
	 * 操作表数据组件（联合主键使用'_'下划线链接）
	 */
	private String tableId;
	
	/**
	 * 操作类型: 0. insert; 1. delete; 2. update; 3. select;
	 */
	private String operationType;
	
	/**
	 * 操作时间
	 */
	private Date operatedAt;
	
	/**
	 * 操作人
	 */
	private String operatedBy;
	
	/**
	 * 操作执行耗时
	 */
	private Long executeTime;
	
	/**
	 * 原始sql
	 */
	private String originalSQL;
	
	/**
	 * 字段明细
	 */
	private List<DruidLogColumnBO> columns;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}

	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}

	public Date getOperatedAt() {
		return operatedAt;
	}

	public void setOperatedAt(Date operatedAt) {
		this.operatedAt = operatedAt;
	}

	public String getOperatedBy() {
		return operatedBy;
	}

	public void setOperatedBy(String operatedBy) {
		this.operatedBy = operatedBy;
	}

	public Long getExecuteTime() {
		return executeTime;
	}

	public void setExecuteTime(Long executeTime) {
		this.executeTime = executeTime;
	}

	public String getOriginalSQL() {
		return originalSQL;
	}

	public void setOriginalSQL(String originalSQL) {
		this.originalSQL = originalSQL;
	}

	public List<DruidLogColumnBO> getColumns() {
		return columns;
	}

	public void setColumns(List<DruidLogColumnBO> columns) {
		this.columns = columns;
	}

	public static class Operator {
		
		public final static String SELECT = "0";
		
		public final static String DELETE = "1";
		
		public final static String UPDATE = "2";
		
		public final static String INSERT = "3";
		
	}
}
